package com.traffic.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.traffic.dao.UserDao;
import com.traffic.domain.User;
import com.traffic.service.UserService;
@Service
public class UserServiceImpl implements UserService{
    @Resource
    private UserDao userDao;
	@Override
	public User findUserById(Long userId) {
		System.out.println("userDao: "+userDao);
		User user = userDao.getById(userId);
		return user;
	}

	@Override
	public void update(User user) {
		userDao.update(user);
	}

}
